package com.example.petstore.service;

import com.eudi.ssm.petstore.web.model.PagingList;
import com.example.petstore.persist.model.Product;

/**
 * @author autfish
 * http://blog.csdn.net/autfish/article/details/51899002
 */
public interface ProductService {

	void addProduct(Product product);
	
	void deleteProduct(int id);
	
	void updateProduct(Product product);
	
	Product selectById(int id);
	
	PagingList<Product> findProducts(int id, String name, float fromPrice, float toPrice, int pageIndex, int pageSize);
}
